<?php
    require_once 'config.php';
    require_once "../includes/SC/SCloge.php";

    $q = $_GET["q"];
    
    $SCloge = new SCloge();
    $listeLoges = $SCloge->lister(new Loge(null, null, $q));

    foreach ($listeLoges as $uneLoge) {
        echo '<option value="'.$uneLoge->getNom().'">'.$uneLoge->getNom().'</option>';
    }
?> 